#if !defined(_APP_MQTT)
#define _APP_MQTT

#define server_uri "ws://192.168.44.23:1883"
#define uuid "7d6d4566-03a1-11f0-9f38-43ae833d358f"
#define mqtt_pull "pull"
#define mqtt_push "push"
#define mqtt_qos 1

/**
 * @brief 初始化mqtt
 */
void app_mqtt_init();

/**
 * @brief 发送消息
 * @param 要发送的数据
 * @param 发送数据的长度
 */

int app_mqtt_send(char *data,int datalen);

/**
 * @brief 接收消息回调函数
 */
int app_mqtt_receivecallback(int (*callback)(char *data,int len));

/**
 * @brief 销毁函数
 */
void app_mqtt_destroy();

#endif